home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / MCPPCBuildAll < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.7 KB  |  72 lines  |  [TEXT/MPS ]

  1. # Full build script for MRC PPC
  2. #
  3. #    MCPPCBuildAll [Debug|Release] [Clean] [NoExamples]
  4. #
  5. # This script assumes that you have placed UserStartup•ODF in your MPW folder.
  6.  
  7. if {ODF} == ""
  8.     Beep
  9.     Beep
  10.     Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)." 
  11.     Echo "### Please do so before continuing. Those files are located in the 'MPW-ToolServer Additions'" 
  12.     Echo "### folder inside the ODFDev folder. Don't forget to relaunch MPW (or ToolServer)." 
  13.     exit
  14. end
  15.  
  16. Set TheBuild ""
  17. Set Clean 0
  18. Set Examples 1
  19.  
  20. For item in {"Parameters"}
  21.     if {item} == Debug
  22.         Set TheBuild Debug
  23.     else if {item} == debug
  24.         Set TheBuild Debug
  25.     else if {item} == Release
  26.         Set TheBuild Release
  27.     else if {item} == release
  28.         Set TheBuild Release
  29.     else if {item} == Clean
  30.         Set Clean 1
  31.     else if {item} == clean
  32.         Set Clean 1
  33.     else if {item} == NoExamples
  34.         Set Examples 0
  35.     else if {item} == noexamples
  36.         Set Examples 0
  37.     else if {item} == Noexamples
  38.         Set Examples 0
  39.     else 
  40.         Echo "MCPPCBuildAll [Debug|Release] [Clean] [NoExamples]"
  41.         exit
  42.     end
  43. End
  44.  
  45. if {TheBuild} == ""
  46.     Set TheBuild Debug
  47. end
  48.  
  49. Set Exit 0
  50. if {Clean} == 1
  51.     Echo "Cleaning object files"
  52.     delete -y "{ODF}MCPPC{TheBuild}:Obj:"≈
  53.     if {Examples} == 1
  54.         For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
  55.             delete -y "{ODFDev}{example}:MCPPC{TheBuild}:Obj:"≈
  56.         End
  57.     End
  58. End
  59. Set Exit 1
  60.  
  61. # ----- Build ODF Shared Library
  62. # The shared library is built using CodeWarrior.
  63.  
  64. # ----- Build ODF Static Libraries
  65. "{ODF}MCPPC{TheBuild}:Build"
  66.  
  67. # ----- Build ODF Samples
  68. if {Examples} == 1
  69.     For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
  70.         "{ODFDev}{example}:MCPPC{TheBuild}:Build"
  71.     End
  72. End